import request from '@/router/axios';
//查询邮件列表
export const query = () => {
  return request({
    url: '/api/blade-email/black',
    method: 'get'
  })
}

//添加黑名单
export const save = (row) => {
  return request({
    url: '/api/blade-email/black',
    method: 'post',
    headers:{
      "Content-Type":"application/json"
    },
    data: JSON.stringify(row)
  })
}

//删除 黑名单
export const del = (id) => {
  return request.delete(`/api/blade-email/black/${id}`, {params: {id:id}})
}
